<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=8" />
<link href="${pageContext.request.contextPath }/ui/ligerui/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath }/ui/ligerui/skins/ligerui-icons.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/ui/ligerui/js/core/base.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/ui/ligerui/js/plugins/ligerGrid.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/ui/ligerui/js/plugins/ligerToolBar.js"></script>
<title>模块管理</title>
<script type="text/javascript">
var grid = null;
$(function(){
	var toolitem ={items:[{
		text: '新增', click: clickadd, icon: 'add2'
	},{
		line: true
	},{
		text: '修改', click: clickadd, icon: 'edit'
	},{
		line: true
	},{
		text: '删除', click: clickadd, icon: 'delete'
	}]};
	
	$("#grid").ligerGrid({
		url:'${pageContext.request.contextPath }/getModuleAll.do',
		async:false,
		rownumbers:true,
		columns:[{
			display: '主键',name: 'id',width: 120,isSort:false
		},{
			display: '表格列名',name: 'name',width: 120,isSort:false
		},{
			display: '表格列标题', name: 'display',isSort:false
		},{
			display: '是否排序', name: 'isSort',isSort:false
		},{
			display: '是否显示表头菜单', name: 'isAllowHide',isSort:false
		},{
			display: '宽度', name: 'width',isSort:false
		},{
			display: '最小宽度', name: 'minWidth',isSort:false
		},{
			display: '对齐方式', name: 'align',isSort:false
		},{
			display: '是否隐藏', name: 'hide',isSort:false
		},{
			display: '类名', name: 'clsName',isSort:false
		}],
		toolbar:toolitem
	});
});
function clickadd(){
	alert("ok");
}
</script>
</head>
<body>
	<div id="grid"></div>
</body>
</html>